import { RouteRecordRaw } from 'vue-router';
import Index from '../pages/Index.vue';
const routes: RouteRecordRaw[] = [
    {
        path: '/',
        redirect: '/index',
    },
    {
        path: '/login',
        component: () => import('../pages/Login.vue'),
        children: [
            {
                path: 'home',
                component: () => import('../pages/Home.vue'),
            }
        ]
    },
    {
        path: '/index',
        components: {
            default: Index,
        }
    },
    {
        path: '/home',
        component: () => import('../pages/Home.vue'),
    }
]


export default routes;